/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

/**
 *
 * @author Endlesslove
 */
public class BaoCaoTon  implements  Idata
{
    private String MaBaoCaoTon;
    public  int ThangBaoCao;
    public int NamBaoCao;
    public BaoCaoTon(String ...param)
    {
        MaBaoCaoTon = param[0];
        ThangBaoCao = Integer.parseInt(param[1]);
        NamBaoCao = Integer.parseInt(param[2]);
    }
    
    @Override
    public boolean Delete() 
    {
        return new BUS.BaoCaoTon().Delete(this);
    }

    @Override
    public boolean Insert() 
    {
        return new BUS.BaoCaoTon().Insert(this);
    }

    @Override
    public boolean Update() 
    {
        return new BUS.BaoCaoTon().Update(this);
    }

    @Override
    public Object[] getObjects() 
    {
        return new Object[]
        {
            MaBaoCaoTon, ThangBaoCao,NamBaoCao
        };
    }

    @Override
    public String getID() 
    {
        return MaBaoCaoTon;
    }
    
}
